/**
 * Created by CZ on 2017/4/6.
 */
module.exports = function ($scope,$interval,$state) {

    $scope.second = 10 ;
    var timer = $interval(function(){
        $scope.second -- ;
        if( $scope.second == 0){
            //停止定时器
            $interval.cancel(timer);
            $state.go('CloudPlatform.home')
        }
    },1000)


};